Skip to content

feat: Simplify import/export page redirects to always use MFE for courses#38423

Draft
irfanuddinahmad wants to merge 2 commits intomasterfrom
iahmad/DEPR-36108-import-export
Draft

feat: Simplify import/export page redirects to always use MFE for courses#38423
irfanuddinahmad wants to merge 2 commits intomasterfrom
iahmad/DEPR-36108-import-export

Conversation

@irfanuddinahmad
Copy link
Copy Markdown
Contributor

@irfanuddinahmad irfanuddinahmad commented Apr 23, 2026

This pull request simplifies the logic for redirecting to the new import and export pages by removing the use of feature toggles. Now, the redirect happens for all courses (excluding libraries), regardless of any toggle state.

Import/Export Page Redirection Simplification:

  • Removed the use of the use_new_import_page and use_new_export_page toggles from the import and export handlers in import_export.py, so that all courses (except libraries) are redirected to the new import/export pages unconditionally. [1] [2]
  • Cleaned up the import statements by removing the now-unused use_new_import_page and use_new_export_page imports.

302 redirect for Import

image

302 redirect for Export

image

@irfanuddinahmad irfanuddinahmad changed the title feat!: Simplify import/export page redirects to always use MFE for courses feat: Simplify import/export page redirects to always use MFE for courses Apr 23, 2026
@irfanuddinahmad irfanuddinahmad marked this pull request as draft April 23, 2026 08:42
@irfanuddinahmad irfanuddinahmad force-pushed the iahmad/DEPR-36108-import-export branch 2 times, most recently from 066374b to 65ac714 Compare April 28, 2026 11:00
@irfanuddinahmad irfanuddinahmad linked an issue Apr 28, 2026 that may be closed by this pull request
52 tasks
@irfanuddinahmad irfanuddinahmad added the create-sandbox open-craft-grove should create a sandbox environment from this PR label Apr 28, 2026
@irfanuddinahmad irfanuddinahmad force-pushed the iahmad/DEPR-36108-import-export branch from 65ac714 to 73c6f43 Compare April 29, 2026 12:25
…urses.

The import and export pages in Studio have been replaced with new views
in the Authoring MFE for courses. The legacy condition guarded by the
'legacy_studio.import' and 'legacy_studio.export' waffle flags is
removed. Courses now always redirect to the MFE; libraries continue to
use the legacy HTML page as v2 libraries are not yet fully rolled out.

This work is part of #36108

BREAKING CHANGE: The 'legacy_studio.import' and 'legacy_studio.export'
waffle flags will no longer be respected for courses. The system will
behave as if the flags are set to false permanently for courses.
@irfanuddinahmad irfanuddinahmad force-pushed the iahmad/DEPR-36108-import-export branch from 73c6f43 to 0dcb463 Compare April 29, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

create-sandbox open-craft-grove should create a sandbox environment from this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DEPR]: Various legacy Studio pages with direct MFE replacements

1 participant